/**
 * 类功能描述：
 * 
 * 存放替代关系的POJO类
 *     
 * <br><br>
 * <b>Revision History</b>
 * <br><b>Rev:</b> 1.0 – 2012-07-12，魏文杰
 * <br><b>Comment:</b> Initial release.
 **/

package ext.generic.erp.bean;

import wt.fc.WTObject;

public class AlternativeMaterial extends WTObject {
	//父件编号
	private String parentNumber = "" ;
	
	//父件视图
	private String parentView = "" ;
	
	//父件大版本
	private String majorVersion = "";
	
	//子件编号
	private String childNumber = "" ;
	
	//替代料编号
	private String replacePartNumber = "" ;
	
	//替代数量
	private String quantity = "" ;
	
	//替代单位
	private String unit = "" ;
	
	//替代关系类型
	private String replaceRelationship = "" ;
	
	//替代方向
	private String replaceDirection = "" ;
	
	//零部件完整版本，包括大版本和小版本，通常形如：A.1
	private String version = "" ;
		
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getParentNumber() {
		return parentNumber;
	}

	public void setParentNumber(String parentNumber) {
		this.parentNumber = parentNumber;
	}

	public String getParentView() {
		return parentView;
	}

	public void setParentView(String parentView) {
		this.parentView = parentView;
	}
	
	public String getMajorVersion() {
		return majorVersion;
	}

	public void setMajorVersion(String majorVersion) {
		this.majorVersion = majorVersion;
	}

	public String getChildNumber() {
		return childNumber;
	}

	public void setChildNumber(String childNumber) {
		this.childNumber = childNumber;
	}

	public String getReplacePartNumber() {
		return replacePartNumber;
	}

	public void setReplacePartNumber(String replacePartNumber) {
		this.replacePartNumber = replacePartNumber;
	}

	public String getQuantity() {
		return quantity;
	}

	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getReplaceRelationship() {
		return replaceRelationship;
	}

	public void setReplaceRelationship(String replaceRelationship) {
		this.replaceRelationship = replaceRelationship;
	}

	public String getReplaceDirection() {
		return replaceDirection;
	}

	public void setReplaceDirection(String replaceDirection) {
		this.replaceDirection = replaceDirection;
	}

	@Override
	public String toString() {
		StringBuffer infoBuffer = new StringBuffer("");
		
		infoBuffer.append("Parent Part Number : ");
		infoBuffer.append(this.parentNumber);
		infoBuffer.append("\n");
		infoBuffer.append("Parent Part View : ");
		infoBuffer.append(this.parentView);
		infoBuffer.append("\n");
		infoBuffer.append("Parent Part majorVersion : ");
		infoBuffer.append(this.majorVersion);
		infoBuffer.append("\n");
		infoBuffer.append("Child Part Number : ");
		infoBuffer.append(this.childNumber);
		infoBuffer.append("\n");
		infoBuffer.append("Replace Part Number : ");
		infoBuffer.append(this.replacePartNumber);
		infoBuffer.append("\n");
		infoBuffer.append("Quantity : ");
		infoBuffer.append(this.quantity);
		infoBuffer.append("\n");
		infoBuffer.append("Unit : ");
		infoBuffer.append(this.unit);
		infoBuffer.append("\n");
		infoBuffer.append("Replace Relation ship : ");
		infoBuffer.append(this.replaceRelationship);
		infoBuffer.append("\n");
		infoBuffer.append("Replace Direction : ");
		infoBuffer.append(this.replaceDirection);
		infoBuffer.append("\n");
		
		return infoBuffer.toString();
	}

}
